#include <iostream>
#include <signal.h>
#include "Client.hpp"
void Usage(std::string argv0)
{
    printf("Usage:\n\t%s server_ip server_port\n\n", argv0.c_str());
    exit(0);
}
int main(int argc, char *argv[])
{

    if (argc != 3)
    {
        Usage(argv[0]);
    }

    std::string server_ip = argv[1];
    in_port_t server_port = std::stoi(argv[2]);

    // 建立client
    Client cli(server_ip, server_port);
    // 初始化
    cli.Init();
    // 运行
    cli.Start();
    return 0;
}